package com.hhc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
//RestController是一个注解，相当于@Controller+@ResponseBody，多用于返回json数据
@RestController
public class TestController {
    @RequestMapping("/test")
    public String test() {
        return "test";
    }

}
